#include"StdUdp.h"
#include<stdio.h>
#include<stdlib.h>

int main(int argc,char *argv[])
{
    if(argc!=3)
    {
        printf("invalid numbers!\n");
        return -1;
    }
    UdpC *c=InitUdpClient(argv[1],atoi(argv[2]));
    while(1)
    {
        char temp[100]={0};
        scanf("%[^\n]",temp);
        while(getchar()!='\n');
        UdpClientSend(c,temp,100);
        printf("client post: %s\n",temp);
    }
    return 0;
}

